# Contributor: Sergio Iglesias <sergiotarxz@posteo.net>
# Maintainer: Sergio Iglesias <sergiotarxz@posteo.net>
pkgname=openmg
pkgver=0.0.8
pkgrel=0
pkgdesc="Manga reader for GNOME"
url="https://gitea.sergiotarxz.freemyip.com/sergiotarxz/mangareader"
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="gtk4.0-dev meson libsoup-dev libadwaita-dev pcre2-dev json-glib-dev"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://gitea.sergiotarxz.freemyip.com/sergiotarxz/mangareader/archive/v$pkgver.tar.gz"
builddir="$srcdir/mangareader"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
2298e41e09438cd812778c1c0e4fc68d4c31005f2a2b1e86cc1dd5487aac17b53773e85d32f8a199e692e4da09e6165b4469219ff05a8c6bf1cf5cf7ad307226  openmg-0.0.8.tar.gz
"
